<template>
	<view class="slicing-off-step2-page-content">
		<easy-select-form-item
			class="forma-item"
			label="入库方式"
			v-model="form.taskModel"
			:list="selectList.models"
			value-field="code"
			label-field="name"
			:clearable="false"
		/>
		
		<scan-input-form-item
			label="目标位置"
			v-model="form.toPlaceCode"
			:has-scan="false"
			:has-search="false"
		/>
	</view>
</template>

<script>
import ScanInputFormItem from '@/components/ScanInputFormItem.vue'
import EasySelectFormItem from '@/components/EasySelectFormItem.vue'
import { getDicList } from '@/static/js/utils/index.js'
const defaultForm = {
	taskModel:'2',
	toPlaceCode:''
}
export default {
	name:'slicingOffStep2PageContent',
	components:{ScanInputFormItem,EasySelectFormItem},
	data(){
		return {
			form: {...defaultForm},
			selectList:{
				startStations:[],
				models:[]
			}
		}
	},
	methods:{
		init(){
			this.getActionTypes()
		},
		getActionTypes(){
			if (this.selectList.models.length>0) {
				callback && callback(true)
			} else {
				this.selectList.models = getDicList(this.$store,'assemble_taskmodel')
			}
		},
		clear(){
			this.form = {...defaultForm}
		},
		get(){
			return {...this.form}
		}
	}
}
</script>

<style lang="scss" scoped>
.slicing-off-step2-page-content{
	height: 100%;
	overflow: auto;
	.forma-item{
		margin-bottom: 24rpx;
	}
}
</style>